package com.example.pet.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("商品")
@JsonInclude(JsonInclude.Include.NON_NULL) //jackson注解 用于实体类 作用是在返回json数据时，如果该属性为null则不参与序列化
public class Supply {
    @ApiModelProperty("商品id")
    private Integer supplyId;

    @ApiModelProperty(value = "分类id", hidden = true)
    private Integer classificationId;
 @ApiModelProperty(value = "商家id", hidden = true)
    private Integer merchantsId;
    @ApiModelProperty("商家名称")
    private String merchantsName;
    @ApiModelProperty("商品名称")
    private String supplyName;

    @ApiModelProperty("商品描述")
    private String descrption;

    @ApiModelProperty("商品价格")
    private double supplyPrice;

    @ApiModelProperty("商品图片路径")
    private String supplyImage;


}

